package com.ztesoft.sca.service.user;

import com.ztesoft.sca.model.user.ImPrivilegePo;
import com.ztesoft.sca.model.user.ImUserPo;
import com.ztesoft.sca.model.user.ImUserVo;

import java.util.List;

/**
 * @author liang.aozhao
 * @created 2018/5/15 21:14
 */
public interface ImUserService {
    long addImUser(ImUserPo imUserPo) throws Exception;

    void deleteImUser(ImUserPo imUserPo) throws Exception;

    void updateImUser(ImUserPo imUserPo) throws Exception;

    ImUserPo getImUser(ImUserPo imUserPo) throws Exception;

    List<ImUserPo> listImUsersByRoleId(Long roleId) throws Exception;

    List<ImUserPo> listImUserByOrgId(Long orgId) throws Exception;

    void addImUserRoleRela(Long userId, Long roleId) throws Exception;

    void deleteImUserRoleRela(Long userId, Long roleId) throws Exception;

    List<ImPrivilegePo> listImPrivilegeByUserId(Long userId) throws Exception;
}
